<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<ui:composition>
	<h:form id="fileLinkForm">
		<p:panel id="smtaFileLinkPanel">
			<h:outputLink value="#{fileLinkBean.smtaFileUrl}" >
				<h:outputText value="Download SMTA PDF file" />
			</h:outputLink>
		</p:panel>
		<p:panel id="mtaFileLinkPanel">
			<c:if test="#{fileLinkBean.isMtaExists()}">
				<h:outputLink value="#{fileLinkBean.mtaFileUrl}" >
					<h:outputText value="Download MTA PDF file" />
				</h:outputLink>
			</c:if>
		</p:panel>
	</h:form>
</ui:composition>

</html>
